package model.timers;


import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.Timer;


/**
 * A class to handle the timing of blind increases. Just query this class
 * to determine the current size of the blinds. It is assumed small blind is
 * always half of the big blind and blinds double every timer interval specified
 * in seconds
 * @author Phil
 *
 */
public class DoubleBlindCounter extends BlindCounter{

        private int bigBlindSize;       
        private int blindIncreaseTime;
        
        
        /**
         * 
         * @param initialBigBlindSize - the initiail size of the big blind
         * @param blindIncreaseTime - the time to increase the blinds in seconds
         */
        public DoubleBlindCounter(int initialBigBlindSize, int blindIncreaseTime){
                super(blindIncreaseTime);
                this.bigBlindSize = initialBigBlindSize;
                this.blindIncreaseTime = blindIncreaseTime;             
        }
        
        public int getBigBlind(){
                return this.bigBlindSize;
        }
        
        public int getSmallBlind(){
                return this.bigBlindSize/2;
        }
        
        protected void increaseBlind(){
                this.bigBlindSize *= 2;
        }

		
        
}